package cn.wjdiankong.levideo.utils;

import android.util.Log;

public class Logger {
	
	public static boolean isDebug = true;
	
	private final static String TAG = "levideo";
	
	public static void log(String tag, String msg){
		if(isDebug){
			Log.i(tag, msg+"");
		}
	}
	
	public static void log(String msg){
		if(isDebug){
			Log.i(TAG, msg+"");
		}
	}
	
	public static void traceInfo(){
		if(isDebug){
			try{
				throw new NullPointerException();
			}catch(Exception e){
				Log.i(TAG, "trace:"+Log.getStackTraceString(e));
			}
		}
	}
	
}
